package Day2025_02_21;

/**
 * 通过匿名内部类
 */

public class Demo03_Thread {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                while (true) {
                    System.out.println("hello my thread");
                }
            }
        };
    }
}
